//判断用户有没有登录
export function myLogin() {
  if (localStorage.getItem("token")) {
    return false;
  }
  return true;
}

// 生成token
export function setToken(token) {
  localStorage.setItem("token", token);
}
//获取token
export function getToken() {
  return localStorage.getItem("token");
}
// 移除token
export function removeToken() {
  localStorage.removeItem("token");
}
